home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir34 / dirutili.zip / TKEYS.DEF < prev   
Text File  |  1992-04-23  |  9KB  |  211 lines

  1. /*****************************************************************************
  2.  *                                                                           *
  3.  *                             T - A Tiny Editor                             *
  4.  *                                                                           *
  5.  *****************************************************************************
  6.  *                                                                           *
  7.  * This is an example of an editor definition file used with the TKEY        *
  8.  * program to customise the T editor.                                        *
  9.  *                                                                           *
  10.  * If you are going to customise T it is a good idea to make a copy of this  *
  11.  * file with another name and alter that, rather than making your changes    *
  12.  * directly to this file.                                                    *
  13.  *                                                                           *
  14.  * Then to customise simply use the command:                                 *
  15.  *                                                                           *
  16.  *     TKEY YOUR.DEF T.EXE     for the PC/DOS version                        *
  17.  * or  TKEY YOUR.DEF T2.EXE    for the OS/2 version                          *
  18.  *                                                                           *
  19.  *****************************************************************************
  20.  *      (C) Copyright IBM Corporation 1987, 1989  for Internal Use Only      *
  21.  *****************************************************************************/
  22.  
  23.  
  24. /*---- COLOUR DEFINITIONS ---------------------------------------------------*
  25.  *                                                                           *
  26.  * Two sets of colours are defined.  The first set (the 'mono' colours) are  *
  27.  * used with the old monochrome card or with any colour display if a MODE    *
  28.  * BW40 or MODE BW80 is issued.                                              *
  29.  *                                                                           *
  30.  * The second set of colours (the 'colour' colours) are used for the normal  *
  31.  * colour display modes.                                                     *
  32.  *                                                                           *
  33.  * The spelling 'color' is also accepted for those who prefer it that way.   *
  34.  *---------------------------------------------------------------------------*/
  35.  
  36. colour of mono data          = white on black
  37. colour of mono mark          = black on white
  38. colour of mono shadow cursor = underlined bright white on black
  39. colour of mono command line  = black on white
  40. colour of mono status line   = white on black
  41. colour of mono help line     = white on black
  42. colour of mono message line  = bright white on black
  43.  
  44. colour of colour data          = bright white on blue
  45. colour of colour mark          = bright white on brown
  46. colour of colour shadow cursor = black on white
  47. colour of colour command line  = bright white on turquoise
  48. colour of colour status line   = bright turquoise on blue
  49. colour of colour help line     = bright white on blue
  50. colour of colour message line  = yellow on blue
  51.  
  52.  
  53. /*---- KEYBOARD DEFINITIONS -------------------------------------------------*
  54.  *                                                                           *
  55.  * T has a large number of 'keyboard functions' that are accessed by assign- *
  56.  * ing them to a user definable key.  For a complete list of the functions   *
  57.  * and keys to which they may be assigned refer to the reference section of  *
  58.  * the T documentation.                                                      *
  59.  *                                                                           *
  60.  * The following two keyboard functions are not assigned to any key:         *
  61.  *   file                                                                    *
  62.  *   next line                                                               *
  63.  *---------------------------------------------------------------------------*/
  64.  
  65. // The actions associated with the Function keys ...
  66.  
  67. key f1  = help
  68. key f2  = save
  69. key f3  = quit
  70. key f4  = safe file
  71. key f5  = user
  72. key f7  = name
  73. key f8  = edit
  74. key f9  = undo
  75. key f10 = next file
  76. key a-f10 = previous file
  77.  
  78.  
  79. // The cursor and data movement keys ...
  80.  
  81. key s-f1 = scroll left
  82. key s-f2 = scroll right
  83. key s-f3 = scroll up
  84. key s-f4 = scroll down
  85.  
  86. key tab   = tab
  87. key s-tab = backtab
  88.  
  89. key up    = up
  90. key down  = down
  91. key left  = left
  92. key right = right
  93. key home  = start of line
  94. key end   = end of line
  95. key pgup  = page up
  96. key pgdn  = page down
  97.  
  98. key c-right = next word
  99. key c-left  = previous word
  100. key c-home  = top of file
  101. key c-end   = bottom of file
  102. key c-pgup  = top of screen
  103. key c-pgdn  = bottom of screen
  104.  
  105.  
  106. // Character and line inserting and deleting ...
  107.  
  108. key ins         = insert toggle
  109. key del         = delete character
  110. key backspace   = backspace
  111. key enter       = new line
  112. key c-enter     = insert line
  113. key c-backspace = delete line
  114. key c-e         = truncate line
  115.  
  116.  
  117. // Line marking functions ...
  118.  
  119. key a-l = mark line
  120. key a-c = copy mark
  121. key a-d = delete mark
  122. key a-m = move mark
  123. key a-u = clear mark
  124. key a-y = top of mark
  125. key a-e = bottom of mark
  126.  
  127. key a-f7 = mark left
  128. key a-f8 = mark right
  129.  
  130.  
  131. // Miscellaneous other keys ...
  132.  
  133. key esc = command toggle
  134.  
  135. key a-x = escape
  136.  
  137. key a-s = split line
  138. key a-j = join line
  139. key a-a = adjust line
  140. key a-r = repeat line
  141.  
  142. key c-f = repeat find
  143.  
  144.  
  145. // T also allows a single character to be assigned to a key.  This is used
  146. // here to access the single line box characters.
  147.  
  148. key a-1 = ascii 192             // Bottom left corner
  149. key a-2 = ascii 193             // Bottom intersection
  150. key a-3 = ascii 217             // Bottom right corner
  151. key a-4 = ascii 195             // Left intersection
  152. key a-5 = ascii 197             // Centre intersection
  153. key a-6 = ascii 180             // Right intersection
  154. key a-7 = ascii 218             // Top left corner
  155. key a-8 = ascii 194             // Top intersection
  156. key a-9 = ascii 191             // Top right corner
  157. key a-- = ascii 196             // Horizontal line
  158. key a-= = ascii 179             // Vertical line
  159.  
  160. // A single character can also be assigned to a key by listing the character
  161. // in quotes, for example ...
  162.  
  163. key a-b = "\"                   // Set alt-b to a back-slash
  164.  
  165.  
  166. // The default action of all the other user definable keys is 'nothing',
  167. // for example ...
  168.  
  169. key a-q = nothing
  170.  
  171.  
  172. /*---- SPECIAL DEFINITIONS --------------------------------------------------*
  173.  *                                                                           *
  174.  * Special editor functions and settings.                                    *
  175.  *                                                                           *
  176.  * These special settings are divided into two sections.  The first section  *
  177.  * contains those items that most people might want to alter, the second     *
  178.  * section contains the more obscure items that most people will want to     *
  179.  * leave set to the defaults.                                                *
  180.  *---------------------------------------------------------------------------*/
  181.  
  182. // Section One ...
  183.  
  184. set command toggle   = command          // Start on the command line.
  185. set insert toggle    = replace          // Start up in overtype mode.
  186.  
  187. set default search   = case sensitive   // Respect case when searching.
  188.  
  189. set snow removal     = automatic        // With a PCJr you should set 'snow
  190.                                         // removal = off'
  191.  
  192. set help command     = "T C:\DIRUTILY\THELP.HLP" // You may need to specify the full
  193.                                         // drive/path to access the help file.
  194.  
  195. set user command     = "DOS"            // Define a DOS function key.
  196.  
  197. set margin           = off              // No right margin column.
  198.  
  199. set help line =                         // A help line to show the F-keys.
  200. "F1=Help F2=Save F3=Quit F4=File F5=DOS          F7=Name F8=Edit F9=Undo F10=Next"
  201.  
  202.  
  203. // Section Two ...
  204.  
  205. set command recall   = 10               // Save the last 10 commands
  206. set tab spacing      = 8                // Set tabs every 8 spaces
  207. set automatic indent = on               // Auto indent on new lines
  208. set final eof        = on               // Terminate files with a x'1A'
  209. set keyboard         = automatic        // Use Enhanced Keyboard if possible
  210.  
  211.